using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

//////////////////////////////////////////999999999999999999999999999999999999999999
namespace BasicData.Domain.Entities
{
    public class BaseEntity
    {
        /// <summary>
        /// 基类编号
        /// </summary>
        [Key]
        public Guid Id { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedBy { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreatedTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 修改人
        /// </summary>
        public string? ModifiedBy { get; set; }
        /// <summary>
        /// 删除人
        /// </summary>
        public string? OperatedBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ModifiedTime { get; set; }

        /// <summary>
        /// 删除标记（0-未删除，1-已删除）
        /// </summary>
        public bool IsDeleted { get; set; } = false;
    }
}
